import { LevelData } from "../game/Data/LevelData";

export default class CommonConstant {

    /** 方向单位向量*/
    static DirectionVector = {
        Up: new Laya.Vector3(0, 1, 0),
        Down: new Laya.Vector3(0, -1, 0),
        Left: new Laya.Vector3(1, 0, 0),
        Right: new Laya.Vector3(-1, 0, 0),
    };

    //服务器地址
    static _resouceServerUrl = "http://203.195.158.35:8090/wxAssetDebug/TinyRoom/";

    static _touchImageName = "touchImage";

    /** fui资源组名字*/
    static _groupName_fuiRes: string = "groupName_fuiRes";

    static _fuiLoadingPanelPath = { fui: "fairyguiRes/fui/LoadingPanel.obj", image: "fairyguiRes/fui/LoadingPanel_atlas0.png", Package: "fairyguiRes/fui/LoadingPanel" };

    static _fuiMainUIPanelPath = { fui: "fairyguiRes/fui/MainUIPanel.obj", image: "fairyguiRes/fui/MainUIPanel_atlas0.png", Package: "fairyguiRes/fui/MainUIPanel" };

    static _fuiGamePropAtlasPath = { fui: "fairyguiRes/fui/GameProp.obj", image: "fairyguiRes/fui/GameProp_atlas0.png", Package: "fairyguiRes/fui/GameProp" };

    static _fuiGameUIPanelPath = { fui: "fairyguiRes/fui/GameUIPanel.obj", image: "fairyguiRes/fui/GameUIPanel_atlas0.png", Package: "fairyguiRes/fui/GameUIPanel" };

    

    //获得道具面板
    static _fuiPropMessagePanelPath = { fui: "fairyguiRes/fui/PropMessagePanel.obj", Package: "fairyguiRes/fui/PropMessagePanel" };

    //合成道具面板
    static _fuiCompositePanelPath = { fui: "fairyguiRes/fui/CompositePanel.obj", Package: "fairyguiRes/fui/CompositePanel" };

    //結算面板
    static _fuiCompletePanelPath = { fui: "fairyguiRes/fui/CompletePanel.obj", Package: "fairyguiRes/fui/CompletePanel" };

    //关卡选择界面
    static _fuiSelectLevelPanelPath = { fui: "fairyguiRes/fui/SelectLevelPanel.obj", Package: "fairyguiRes/fui/SelectLevelPanel" ,image: "fairyguiRes/fui/SelectLevelPanel_atlas0.png"};

    //提示界面
    static _fuiHintPanelPath = { fui: "fairyguiRes/fui/HintPanel.obj", Package: "fairyguiRes/fui/HintPanel" ,image: "fairyguiRes/fui/HintPanel_atlas0.png"};

    //3D场景路径
    static GetSceneNameByLevelData(levelData: LevelData): string {
        let scenePath = "unityRes/LayaScene_" + levelData.levelScene + "/Conventional/" + levelData.levelScene + ".ls";
        return scenePath;
    }

    //3D Prefab路径
    //所有GamePropObj Prefab
    static _allGamePropObj: string = "unityRes/LayaScene_AllGameProObj/Conventional/AllGameProObj.lh";

    //摄像机prefab
    static _cameraRotatePrefab: string = "unityRes/LayaScene_CameraRotatePrefab/Conventional/CameraRotatePrefab.lh";

    //RenderCamera prefab
    static _renderCameraPrefab: string = "unityRes/LayaScene_RenderCameraInLaya/Conventional/RenderCameraInLaya.lh";

    //密码机数字贴图
    static _numTexturePath :string ="texture/NumTexture/";

    //sparkPlugs预设
    static _sparkPlugs:string="unityRes/LayaScene_SparkPlugs/Conventional/spark_plug_"
}

